package plg.grupo1.Lexico.StateMachineHierarchy;

import plg.grupo1.Lexico.TokenHierarchy.TokenTexto;

public class State19 implements State{
	
    private static State19 INSTANCE = null;    
	private State19(){}
	
    private synchronized static void createInstance() {
        if (INSTANCE == null) INSTANCE = new State19();
    }
    
    public static State19 getInstance() {
        if (INSTANCE == null) createInstance();
        return INSTANCE;
    }
    
	public void goNext(){
		Contexto.addToken(new TokenTexto(Contexto.getLexema()));
		Contexto.clearLexema();
		Contexto.setCurrentState(State0.getInstance());
	}
}
